Time Zone

API support for this feature is supported only on FX series readers. Getting the Time zone list, current time zone and setting the time zone of the can be done using rm.TimeZone.getList and rm.TimeZone.setActive.

try {

        int activeTimeZoneIndex = 0;

       

        // Get Reader TimeZone list

        TimeZoneInfo timeZoneInfo = rm.TimeZone.getList();

        String[] timeZoneList = timeZoneInfo.getTimeZones();

       

        if (timeZoneList != null) {

        System.out.println("Time Zone List");

        for (int n = 0; n < timeZoneList.length; n++) {

            System.out.println(" " + timeZoneList[n]);

        }

 

        // current Reader TimeZone

        System.out.println(" Active Time Zone: " + timeZoneList[activeTimeZoneIndex]);

        // Set new TimeZone

        rm.TimeZone.setActive((short)0);

 

    }

 

} catch (OperationFailureException exception) {

    System.out.println("testRM: GetTimeZoneList failed " + exception.getStatusDescription());

} catch (InvalidUsageException ex){

}